package com.wontube.web.verify;

import java.io.Serializable;

/**
 * 字段的验证结果
 * @author tanggf(2012-5-7)
 *
 */
public class InvalidField implements Serializable{
	private static final long serialVersionUID = -7863972668434739926L;	
	/** 验证字段 */
	private String field;
	/** 验证信息(可能是i18n的key) */
	private String message;
	/** i18n的键值参数,替换键值里的{0},{1}... */
	private Object[] args;		
	
	public InvalidField() {		
	}
	
	public InvalidField(String field, String message) {
		this(field, message, null);
	}
	
	public InvalidField(String field, String message, Object[] args) {
		this.field = field;
		this.message = message;
		this.args = args;
	}
	
	public String getField() {
		return field;
	}
	public void setField(String field) {
		this.field = field;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Object[] getArgs() {
		return args;
	}
	public void setArgs(Object[] args) {
		this.args = args;
	}
}
